package com.csht.entity;

public class ScalaInJava {

	public static void main(String[] args) {
		Person p = new Person("houzw", 25);
		System.out.println("name=" + p.name() + " age=" + p.age());
		// 伴生对象的方法当做静态方法来使用
		System.out.println(Person.getIdentityNo());
	}
}
